<div class="table-box layui-hide" id="talkDiv">
    <script type="text/html" id="toolbarDemo_talk">评论记录</script>
    <div class="tableShow">
        <table id="datalist_talk" lay-filter="datalist_talk"></table>
    </div>
</div>
<script type="text/html" id="toolbarDemo_shenlog_opts">
    <div class="tab-list-authbut">
        {{# if(d.isdel){ }}
        <a href="javascript:;" class="bar_opt colorhong" onclick="data_del_talk({{d.id}})">删除</a>
        {{#} }}
    </div>
</script>
<script>
    function data_del_talk(id){
        layer.confirm("<div class='tit'>是否确认删除？</div><div class='exp'>删除后不可恢复，请谨慎删除</div>", {
                title:'操作确认',
                icon: 3,
                area:['450px','220px'],
                btn:['确定']
            }, function(conindex){
                facade.ajax({url: ask_flow_del_talk, data:{id:id}}).done(function(res){
                    if (res.code === 2000) {
                        console.log(res.data)
                        layui.table.reload('datalist_talk',{data:res.data.talk});
                        layer.close(conindex);
                    }
                });
            }
        )
    }
</script>